package com.tedu.movie.service;


import com.tedu.movie.pojo.Torder;
import com.tedu.movie.pojo.TorderItemVO;

import java.util.List;

public interface TorderService {
    public boolean updateTorder(Torder torder);
    public boolean deleteTorder(Integer id);

    public List<TorderItemVO> selectAll();
    //添加商品
    public boolean insertTorder(Torder torder);
    //根据商品编号查询一件商品
    public Torder selectById(Integer id);
    //查询某个分类下的商品
    public List<Torder> selectByItemId(Integer itemId);
    public boolean buy(Torder torder);
}
